package com.euond.permission.controller;


import com.euond.common.core.dto.ResultDto;
import com.euond.common.web.controller.BaseCRUDController;
import com.euond.permission.entities.DataPrivilegeDtl;
import com.euond.permission.service.DataPrivilegeDtlService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * Created by user on 2018/1/6.
 */
@RestController
@RequestMapping("permission/front/dataprivilegedtls")
public class DataPrivilegeDtlController extends BaseCRUDController<DataPrivilegeDtlService,DataPrivilegeDtl> {

    /**
     * 按privilegeId（必须）+其它条件查询（分页）
     */
    @GetMapping("/privilege")
    public ResultDto findDataPrivilegeDtlByPrivilegeId(@RequestParam(required = false) Map<String, Object> map) {
        return baseService.findDataPrivilegeDtlByPrivilegeId(map);
    }
}
